﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CardInChina.Bussiness.Frontend.Interface;

namespace CardInChina.Web.Mvc.Controllers
{
    public class CategoryController : CICBasicController
    {
        private CardInfoBusinessService ss = new CardInfoBusinessService();
        //
        // GET: /Category/

        [OutputCache(Duration = int.MaxValue, VaryByParam = "key")]
        public ActionResult Index(string key)
        {
            ViewBag.CardInfoesShow = ss.GetCardInfoesShowByCategory(key);
            ViewBag.SiteCategory = key;
            return View();
        }

    }
}
